package tech.aistar.prj.model.pojo;

import java.util.Date;

public class Video {
    private Integer id;
    private String title;
    private String videoUrl;
    private Integer userId;
    private Date createDate;
    private Integer likes;
    private Double score;

    private Integer status;

    public Video() {
    }

    public Video(Integer id, String title, String videoUrl, Integer userId, Date createDate, Integer likes, Double score,Integer status) {
        this.id = id;
        this.title = title;
        this.videoUrl = videoUrl;
        this.userId = userId;
        this.createDate = createDate;
        this.likes = likes;
        this.score = score;
        this.status = status;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getVideoUrl() {
        return videoUrl;
    }

    public void setVideoUrl(String videoUrl) {
        this.videoUrl = videoUrl;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Integer getLikes() {
        return likes;
    }

    public void setLikes(Integer likes) {
        this.likes = likes;
    }

    public Double getScore() {
        return score;
    }

    public void setScore(Double score) {
        this.score = score;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("Video{");
        sb.append("id=").append(id);
        sb.append(", title='").append(title).append('\'');
        sb.append(", videoUrl='").append(videoUrl).append('\'');
        sb.append(", userId=").append(userId);
        sb.append(", createDate=").append(createDate);
        sb.append(", likes=").append(likes);
        sb.append(", score=").append(score);
        sb.append(", status=").append(status);
        sb.append('}');
        return sb.toString();
    }
}